import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])
import CompuCellSetup

sim,simthread = CompuCellSetup.getCoreSimulationObjects()

CompuCellSetup.initializeSimulationObjects(sim,simthread)

steppableRegistry = CompuCellSetup.getSteppableRegistry()

# add additional objects
pyAttributeAdder, listAdder = CompuCellSetup.attachListToCells(sim)

# emitting waves every 20th period
from custom_steppables import SecretionSteppable
secrete = SecretionSteppable(sim)
steppableRegistry.registerSteppable(secrete)

from custom_steppables import VolumeAnnealingSteppable 
volal = VolumeAnnealingSteppable(sim)
steppableRegistry.registerSteppable(volal)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)
